<html>
 <head>
  <script type="text/javascript">
  function change() {
    document.getElementById("click-here").value = "Hello!";
  }
 </script>
 </head>
<body>
  <input type="button" value="Click here" id="click-here" onclick="change()"></input>
</body>
</html>